package origami.administration.functionality;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;

import origami.administration.CustomFile;


public class DiagramFileManager {

    private Serializer serializer;

    private String fileName;
    
    public DiagramFileManager() {
	serializer = new Serializer();
    }

    public CustomFile recoverDiagram(String diagramPath) {

	try {
	    return serializer.readFile(diagramPath);
	} catch (Exception e) {
	    e.printStackTrace();
	}
	return null;
    }

    public void setFile(String fileName) {
	this.fileName = fileName;
    }

    public String getFile() {
	return fileName;
    }
}
